<div id="testimonial">
    <?php
        if (isset($testimonial)) {
            echo form_open(base_url().'admin/admin_con/update_testimonial');
            echo form_hidden('kode_pelatihan', $kode_pelatihan);
            echo '
                <table>';
                echo '<tr><td>';
                echo form_submit('submit','Tampilkan');
                echo '</td></tr>';
            for($i=0;$i<count($testimonial);$i++){
                $ceklis = '';
                if($testimonial[$i]['CEKLIS']==1){
                    $ceklis = 'CHECKED=yes';
                }
                if($testimonial[$i]['JAWABAN']!=''){
                echo form_hidden('angkatan'.($i+1), $testimonial[$i]['ANGKATAN']);
                echo form_hidden('sesi'.($i+1), $testimonial[$i]['NOMOR_SESI']);
                echo form_hidden('user'.($i+1), $testimonial[$i]['ID_USER']);
                echo '
                <tr>
                    <td style="border-bottom:1px solid;padding:5px">"'.$testimonial[$i]['JAWABAN'].'"<br> ~ '.$testimonial[$i]['NAMA'].', '.$testimonial[$i]['KODE_PELATIHAN'].'-'.$testimonial[$i]['ANGKATAN'].' sesi '.$testimonial[$i]['NOMOR_SESI'].' ~ </td>
                    <td>'. form_checkbox('testimonial[]',($i+1), $ceklis).'</td>
                </tr>';
                }
            }
            echo '
                </table>
                ';
            echo form_close();
        }
    ?>
    

</div>
